package com.ying.service.order;

import com.ying.core.page.PageData;
import com.ying.core.page.PageWrap;
import com.ying.po.order.Orange;
import com.ying.po.order.Order;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface OrangeService {

    Integer create(Orange orange);

    void deleteById(Integer id);

    void deleteByIdInBatch(List<Integer> ids);

    Orange findById(Integer id);

    public List<Orange> findByIdInBatch(List<Integer> ids);

    long countAll();

    List<Orange> findYearAll(String year, Integer userId);

    List<Orange> findYearDuring(Integer year1, Integer year2, Integer userId);

    List<Map> getOrangePrice(Integer userId);
}
